package rush.edu.wechat.facade.user.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 通用用户表
 * </p>
 *
 * @author 梅景飞
 * @since 2018-01-19
 */

public class User implements Serializable{

    private static final long serialVersionUID = 1L;


	private Integer id;
    /**
     * 手机号
     */
	private String username;
    /**
     * 加密密码
     */
	private String password;
    /**
     * 未加密密码
     */
	private String plainPassword;
	private String salt;
    /**
     * 微信号
     */
	private String wechat;
    /**
     * 学院
     */
	private Integer academy;
    /**
     * 专业
     */
	private Integer org;
    /**
     * 公司名字
     */
	private String company;
    /**
     * 真实姓名
     */
	private String realname;
    /**
     * 匿名
     */
	private String nickname;
	private String email;
    /**
     * 电话
     */
	private String telephone;
    /**
     * 0:未设置, 1:男 2：女  3：保密
     */
	private Integer gender;
    /**
     * 身份证
     */
	private String identify;
    /**
     * 头像地址
     */
	private String avatar;
    /**
     * 支付宝帐号
     */
	private String alipay;
    /**
     * 财付通帐号
     */
	private String tenpay;
    /**
     * 是否在线
     */
	private Integer online;
    /**
     * 点击次数
     */
	private Integer clicknum;
    /**
     * 名片
     */
	private String card;
    /**
     * 详细地址
     */
	private String districtdetail;
    /**
     * 职位
     */
	private String position;
    /**
     * 入学时间
     */
	private String entrancetime;
    /**
     * 工作格言
     */
	private String notes;
    /**
     * 1:审核通过.0:待审核通过
     */
	private Integer ischecked;
    /**
     * 禁止用户
     */
	private Integer isenabled;
    /**
     * 是否完善了个人信息
     */
	private Integer iscomplete;
    /**
     * 明星
     */
	private Integer isstar;
    /**
     * 属于某个服务号，多个资本圈共用一个系统
     */
	private Integer serviceid;
    /**
     * 获取接口所需
     */

	private String accessToken;
    /**
     * 用于更新access_token
     */

	private String refreshToken;
    /**
     * 登录时间
     */
	private Date logintime;
    /**
     * 注册时间
     */
	private Date regtime;
    /**
     * 职业标签
     */
	private Integer occupation;
    /**
     * 省份ID
     */
	private Integer provinceId;
    /**
     * 国家ID
     */
	private Integer countryId;
    /**
     * 城市ID
     */
	private Integer cityId;
    /**
     * 地区ID
     */
	private Integer districtId;


	public Integer getId() {
		return id;
	}

	public User setId(Integer id) {
		this.id = id;
		return this;
	}

	public String getUsername() {
		return username;
	}

	public User setUsername(String username) {
		this.username = username;
		return this;
	}

	public String getPassword() {
		return password;
	}

	public User setPassword(String password) {
		this.password = password;
		return this;
	}

	public String getPlainPassword() {
		return plainPassword;
	}

	public User setPlainPassword(String plainPassword) {
		this.plainPassword = plainPassword;
		return this;
	}

	public String getSalt() {
		return salt;
	}

	public User setSalt(String salt) {
		this.salt = salt;
		return this;
	}

	public String getWechat() {
		return wechat;
	}

	public User setWechat(String wechat) {
		this.wechat = wechat;
		return this;
	}

	public Integer getAcademy() {
		return academy;
	}

	public User setAcademy(Integer academy) {
		this.academy = academy;
		return this;
	}

	public Integer getOrg() {
		return org;
	}

	public User setOrg(Integer org) {
		this.org = org;
		return this;
	}

	public String getCompany() {
		return company;
	}

	public User setCompany(String company) {
		this.company = company;
		return this;
	}

	public String getRealname() {
		return realname;
	}

	public User setRealname(String realname) {
		this.realname = realname;
		return this;
	}

	public String getNickname() {
		return nickname;
	}

	public User setNickname(String nickname) {
		this.nickname = nickname;
		return this;
	}

	public String getEmail() {
		return email;
	}

	public User setEmail(String email) {
		this.email = email;
		return this;
	}

	public String getTelephone() {
		return telephone;
	}

	public User setTelephone(String telephone) {
		this.telephone = telephone;
		return this;
	}

	public Integer getGender() {
		return gender;
	}

	public User setGender(Integer gender) {
		this.gender = gender;
		return this;
	}

	public String getIdentify() {
		return identify;
	}

	public User setIdentify(String identify) {
		this.identify = identify;
		return this;
	}

	public String getAvatar() {
		return avatar;
	}

	public User setAvatar(String avatar) {
		this.avatar = avatar;
		return this;
	}

	public String getAlipay() {
		return alipay;
	}

	public User setAlipay(String alipay) {
		this.alipay = alipay;
		return this;
	}

	public String getTenpay() {
		return tenpay;
	}

	public User setTenpay(String tenpay) {
		this.tenpay = tenpay;
		return this;
	}

	public Integer getOnline() {
		return online;
	}

	public User setOnline(Integer online) {
		this.online = online;
		return this;
	}

	public Integer getClicknum() {
		return clicknum;
	}

	public User setClicknum(Integer clicknum) {
		this.clicknum = clicknum;
		return this;
	}

	public String getCard() {
		return card;
	}

	public User setCard(String card) {
		this.card = card;
		return this;
	}

	public String getDistrictdetail() {
		return districtdetail;
	}

	public User setDistrictdetail(String districtdetail) {
		this.districtdetail = districtdetail;
		return this;
	}

	public String getPosition() {
		return position;
	}

	public User setPosition(String position) {
		this.position = position;
		return this;
	}

	public String getEntrancetime() {
		return entrancetime;
	}

	public User setEntrancetime(String entrancetime) {
		this.entrancetime = entrancetime;
		return this;
	}

	public String getNotes() {
		return notes;
	}

	public User setNotes(String notes) {
		this.notes = notes;
		return this;
	}

	public Integer getIschecked() {
		return ischecked;
	}

	public User setIschecked(Integer ischecked) {
		this.ischecked = ischecked;
		return this;
	}

	public Integer getIsenabled() {
		return isenabled;
	}

	public User setIsenabled(Integer isenabled) {
		this.isenabled = isenabled;
		return this;
	}

	public Integer getIscomplete() {
		return iscomplete;
	}

	public User setIscomplete(Integer iscomplete) {
		this.iscomplete = iscomplete;
		return this;
	}

	public Integer getIsstar() {
		return isstar;
	}

	public User setIsstar(Integer isstar) {
		this.isstar = isstar;
		return this;
	}

	public Integer getServiceid() {
		return serviceid;
	}

	public User setServiceid(Integer serviceid) {
		this.serviceid = serviceid;
		return this;
	}

	public String getAccessToken() {
		return accessToken;
	}

	public User setAccessToken(String accessToken) {
		this.accessToken = accessToken;
		return this;
	}

	public String getRefreshToken() {
		return refreshToken;
	}

	public User setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
		return this;
	}

	public Date getLogintime() {
		return logintime;
	}

	public User setLogintime(Date logintime) {
		this.logintime = logintime;
		return this;
	}

	public Date getRegtime() {
		return regtime;
	}

	public User setRegtime(Date regtime) {
		this.regtime = regtime;
		return this;
	}

	public Integer getOccupation() {
		return occupation;
	}

	public User setOccupation(Integer occupation) {
		this.occupation = occupation;
		return this;
	}

	public Integer getProvinceId() {
		return provinceId;
	}

	public User setProvinceId(Integer provinceId) {
		this.provinceId = provinceId;
		return this;
	}

	public Integer getCountryId() {
		return countryId;
	}

	public User setCountryId(Integer countryId) {
		this.countryId = countryId;
		return this;
	}

	public Integer getCityId() {
		return cityId;
	}

	public User setCityId(Integer cityId) {
		this.cityId = cityId;
		return this;
	}

	public Integer getDistrictId() {
		return districtId;
	}

	public User setDistrictId(Integer districtId) {
		this.districtId = districtId;
		return this;
	}


	@Override
	public String toString() {
		return "User{" +
			"id=" + id +
			", username=" + username +
			", password=" + password +
			", plainPassword=" + plainPassword +
			", salt=" + salt +
			", wechat=" + wechat +
			", academy=" + academy +
			", org=" + org +
			", company=" + company +
			", realname=" + realname +
			", nickname=" + nickname +
			", email=" + email +
			", telephone=" + telephone +
			", gender=" + gender +
			", identify=" + identify +
			", avatar=" + avatar +
			", alipay=" + alipay +
			", tenpay=" + tenpay +
			", online=" + online +
			", clicknum=" + clicknum +
			", card=" + card +
			", districtdetail=" + districtdetail +
			", position=" + position +
			", entrancetime=" + entrancetime +
			", notes=" + notes +
			", ischecked=" + ischecked +
			", isenabled=" + isenabled +
			", iscomplete=" + iscomplete +
			", isstar=" + isstar +
			", serviceid=" + serviceid +
			", accessToken=" + accessToken +
			", refreshToken=" + refreshToken +
			", logintime=" + logintime +
			", regtime=" + regtime +
			", occupation=" + occupation +
			", provinceId=" + provinceId +
			", countryId=" + countryId +
			", cityId=" + cityId +
			", districtId=" + districtId +
			"}";
	}
}
